Skip to content

Conversation

sjpb
Copy link
Collaborator

@sjpb sjpb commented Jun 5, 2025

Feedback from users and developers shows it is very easy to forget to run dev/setup-env.sh to update Ansible Galaxy roles/collections after e.g. changing branches or merging in updates which change requirements.yml. The error messages occuring in this situation do not usually make the root cause clear.

While this cannot be actually fixed from ansible/site.yml as roles/collections are already loaded once Ansible is running, this PR raises a clear error if the installed roles/collections do not match the current requirements.yml

Adds a new tag galaxy which can be used to skip this check e.g. during role development.

@sjpb sjpb requested a review from bertiethorpe June 5, 2025 19:05
@sjpb sjpb marked this pull request as ready for review June 6, 2025 09:25
@sjpb sjpb requested a review from a team as a code owner June 6, 2025 09:25
@sjpb sjpb requested a review from MoteHue June 17, 2025 10:44
Copy link
Contributor

@MoteHue MoteHue left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

LGTM, thanks :)

@sjpb sjpb merged commit 13fa5c2 into main Jun 17, 2025
2 checks passed
@sjpb sjpb deleted the feat/verify-galaxy-installs-2 branch June 17, 2025 11:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants